package model;

import java.util.Queue;
import java.util.LinkedList;

public class AcolyteZone
{
  protected Queue<AcolyteCard> cards;
  protected boolean isPublic;
  protected AcolytePlayer owner;
  protected String name;
  
  
  public AcolyteZone(boolean isPublic, AcolytePlayer owner, String name)
  {
    this.name = name;
    this.isPublic = isPublic;
    this.owner = owner;
    cards = new LinkedList<AcolyteCard>();
    
  }
  
  public void rename(String newName)
  {
    name = newName;
  }
  public String getName()
  {
    return name;
  }
  
  public AcolyteCard topCard()
  {
    return cards.peek();
  }
  
  public boolean contains(AcolyteCard toCheck)
  {
    return cards.contains(toCheck);
  }
  
    //add a card to the deck
  public void add(AcolyteCard toAdd)
  {
    cards.add(toAdd);
  }
  
  //remove a card from the deck
  public void remove(AcolyteCard toRemove)
  {
    cards.remove(toRemove);
  }
  
  public boolean isPublic()
  {
    return isPublic;
  }
  
  public AcolytePlayer getOwner()
  {
    return owner;
  }
  
  public void setOwner(AcolytePlayer newOwner)
  {
    owner = newOwner;
  }
}